<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/order/orderDetail/orderDetail.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <script src="${ctx}/appjs/shop/shopOrdered.js"></script>
    <style>
        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
        .bootstrap-table table tbody tr td img{
            max-height: 200px;
            max-width: 200px;
        }
        /*a:not([href]):not([tabindex]){*/
            /*color: #fff !important;*/
        /*}*/
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>积分商城</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>订单管理</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="uploadPath" name="uploadPath" type="hidden" value="${uploadPath}">
                    <input id="transferType" name="transferType" type="hidden" value="${transferType}">
                    <input id="isVerification" name="isVerification" type="hidden" value="${isVerification}">
                    <select id="status" name="status" class="form-control shortInput " style="margin-left: 9px">
                        <option value="">订单状态</option>
                        <option value="0">未付款</option>
                        <option value="1">待发货/待使用</option>
                        <option value="2">待收货</option>
                        <option value="3">已收货</option>
                        <option value="4">已取消</option>
                        <option value="5">退货申请中</option>
                        <option value="6">等待退回</option>
                        <option value="7">退货成功</option>
                    </select>
                    <input id="goodsName" name="goodsName" type="text" class="form-control shortInput input-distance"
                           placeholder="商品名称">


                    <select id="salePlatform" name="salePlatform" class="form-control input-distance shortInput input-distance">
                        <option value="">兑换方式</option>
                        <option value="2">快递邮寄</option>
                        <option value="0">线上发放</option>
                        <option value="1">线下兑换</option>
                    </select>
                    <input id="shopOrderNum" name="shopOrderNum" type="text" class="form-control shortInput input-distance"
                           placeholder="订单号">

                    <select class="form-control shortInput input-distance" name="saleType" id="saleType">
                        <option value="">支付方式</option>
                        <option value="0">积分</option>
                        <option value="1">余额</option>
                    </select>
                    <input id="shippingPerson" name="shippingPerson" type="text" class="form-control shortInput input-distance"
                           placeholder="收货人">
                    <input id="shippingMobile" name="hippingMobile" type="text" class="form-control shortInput input-distance"
                           placeholder="联系电话">

                </div>
                <div class="row">
                    <input id="startTime" name="startTime" type="text" autocomplete="off"
                           class="form-control layer-date input-distance shortInput "
                           placeholder="开始时间">
                    <input id="endTime" name="endTime" type="text" autocomplete="off"
                           class="form-control layer-date input-distance shortInput "
                           placeholder="结束时间">
                    <shiro:hasPermission name="FinanceManage_refund_reload">
                        <button class="btn btn-success input-distance" style="width: 80px;" onclick="shopOrdereds.reLoad()">查询</button>
                    </shiro:hasPermission>

                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>


            </div>
        </div>
    </div>
</div>

<shiro:hasPermission name="FinanceManage_refund_update">
<script>
    FinanceManage_refund_update = true;
</script>
</shiro:hasPermission>
<shiro:hasPermission name="FinanceManage_refund_look">
<script>
    FinanceManage_refund_look = true;
</script>
</shiro:hasPermission>

<script type="text/javascript">


    <%--console.log()--%>
    <%--console.log(${shopVerificationCode})--%>
    var fs =$('#uploadPath').val();

    $('#exampleModalVerification').on('hidden.bs.modal', function () {
        document.getElementById("contentFormVerification").reset();
    });

    // var ibi = Math.floor(15.7784514000 * 100) / 100;
    //
    // console.log(ibi);
    //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(), //设定最小日期为当前日期
        // max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#endTime").val("")
            end.min = datas
        }
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(),
        // max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤
    shopOrdereds.init(fs);
</script>
</html>